package com.project.ssm.dao;

import com.project.ssm.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ISysLogDao {
    @Insert("insert into syslog values(NULL, #{visitTime}, #{username}, #{ip}, #{url}, #{executionTime}, #{method})")
    public void save(SysLog sysLog) throws Exception;

    @Select("select * from syslog")
    public List<SysLog> findAll() throws Exception;
}
